package priv.bestbeat.reportcenter.core.exception;

import org.apache.commons.lang3.StringUtils;

import java.util.Objects;

/**
 * @author bestbeat
 * @date 2022/4/9
 */
public final class ParseException extends RuntimeException{

    public ParseException() {
        super();
    }

    public ParseException(String message) {
        super(message);
    }

    public ParseException(String message, Throwable cause) {
        super(message, cause);
    }

    public ParseException(Throwable cause) {
        super(cause);
    }

    public boolean hasError() {
        return StringUtils.isNotBlank(super.getMessage()) || Objects.nonNull(super.getCause());
    }

}
